<template>
  <el-row :gutter="20">
    <el-col :span="6" v-for="item in list" :key="item.id">
      <div class="grid-content">
        <!-- <i :style="{ color: arr[i] }" class="iconfont" :class="item.icon"></i> -->
        <img :src="item.url" alt="" />
        <div>
          <h4>{{ item.text }}</h4>
          <p>{{ item.num }}</p>
        </div>
      </div>
    </el-col>
  </el-row>
</template>

<script>
export default {
  props: {
    arr: {
      type: Array,
      default: () => []
    },
    list: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style lang="less" scoped>
.el-row {
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
  }
}
.el-col {
  border-radius: 4px;
}
.grid-content {
  border-radius: 4px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  background-color: #fff;
  text-align: center;
  color: #333;
  box-shadow: 1px 5px 10px rgba(0, 0, 0, 0.06);
  img {
    width: 50px;
  }

  i {
    font-size: 38px;
  }

  h4 {
    color: #999;
  }

  p {
    font-weight: 700;
    font-size: 18px;
  }
}
</style>
